/*
 *                  BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 * 
 * Created on May 23, 2005
 *
 */

package org.biojava.services.das2;


/** a bean that contains the description of a site that proivdes bunch
 * of DAs servers using the DAS2 - style sources description
 */

public class Das2Mirror {

	String name;
	String url;
	String uriPrefix;
	private int server_id;
	

	public Das2Mirror(){
		name ="";
		url = "";
		uriPrefix = "";
	}

	public String toString() {
		StringBuffer buf = new StringBuffer();
		buf.append("<name>" + name +"</name>");
		buf.append("<url>" + url + "</url>");
		return buf.toString();
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUriPrefix() {
		return uriPrefix;
	}

	public void setUriPrefix(String prefix) {
		uriPrefix = prefix;
	}

	public void setServerId(int serverId) {
		this.server_id=serverId;
		
	}

}
